<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>在线考试系统 - 登录</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body class="bg-light">
    <div class="container mt-5">
        <h1 class="text-center">在线考试系统</h1>
        <div class="row justify-content-center">
            <div class="col-md-6">
                <div class="card p-4">
                    <form action="/" method="POST">
                        <div class="mb-3">
                            <label for="user_type" class="form-label">选择身份:</label>
                            <select class="form-select" name="user_type" id="user_type">
                                <option value="teacher">老师</option>
                                <option value="student">学生</option>
                                <option value="parent">家长</option>
                            </select>
                        </div>
                        <div class="mb-3">
                            <label for="username" class="form-label">用户名:</label>
                            <input type="text" id="username" name="username" class="form-control" required>
                        </div>
                        <div class="mb-3">
                            <label for="password" class="form-label">密码:</label>
                            <input type="password" id="password" name="password" class="form-control" required>
                        </div>
                        <button type="submit" name="login" class="btn btn-primary w-100">登录</button>
                    </form>
                    <div class="d-flex justify-content-between mt-3">
                        <a href="/register" class="btn btn-link">注册</a>
                        <a href="/forgot_password" class="btn btn-link">忘记密码</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>